package com.javaee.ch11.mapper;

import com.javaee.ch11.entity.Book;
import com.javaee.ch11.web.dto.BookQueryDto;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface BookMapper {


    List<Book> selectAll();

    Book selectById(Long id);
    int insert(Book book);
    int updateById(Book book);
    int deleteById(Long id);
    List<Book> queryBooks(BookQueryDto queryDto);


}